import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {
        //使用直接赋值方式
        String s1 = "abcdef";
        System.out.println(s1);

        char[] chs = {'a', 'b', 'c'};
        String s2 = new String(chs);
        System.out.println(s2);

        //byte类型
        byte[] bytes = {97, 98, 99, 100};
        String s5 = new String(bytes);
        System.out.println(s5);
    }
}
